package com.youlai.boot.modules.game.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.modules.game.model.entity.GamePointsHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 游戏积分历史Mapper接口
 *
 * @author 有来技术团队
 */
@Mapper
public interface GamePointsHistoryMapper extends BaseMapper<GamePointsHistory> {

    /**
     * 获取用户积分历史分页列表
     *
     * @param page     分页参数
     * @param userId   用户ID
     * @return 积分历史分页列表
     */
    Page<GamePointsHistory> getUserPointsHistory(Page<GamePointsHistory> page, @Param("userId") Long userId);
} 